﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	EditGuild
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

 <link href="../../Content/Admin/control.css" rel="stylesheet" type="text/css" />
      <link href="../../Content/template.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/validationEngine.jquery.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validationEngine-vi.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validationEngine.js" type="text/javascript"></script>
    <script>
        $(document).ready(function () {
            $("#formID").validationEngine();
        });
    </script>
    <form method="post" action="/Guild/EditGuild" id="formID">
      <%if (ViewData["listguildid"] != null)
      { %>
      <table>
   <%foreach (VgoCardChange.Models.Objects.Guild guild in (List<VgoCardChange.Models.Objects.Guild>)ViewData["listguildid"])
     { %>
      
      <tr><td> Mã Guild</td><td><input value="<%: guild.GuildID %>" name="GuildID" readonly="readonly" /></td></tr> 
         <tr> <td>Tên Game</td><td><input value="<%: guild.GuildName %>" name="GuildName" class="validate[required]" /></td> 
       </tr> 
        <tr> <td>Số lượng người chơi</td><td><input value="<%: guild.Player_Number%>" name="Player_Number" class="validate[required,custom[integer]]" /></td> 
       </tr> 
       <%-- Mã Quyền: <input value="<%: tv.MaQuyen %>" name="MaQuyen" />--%>
    <%} %>
    </table>
   <%} %>
   <div class="Control">
  <input type="submit" value="Ghi lại" class="vadd" />
  <%:Html.ActionLink("Trở lại", "GetGuilds", "Guild", new { @class="vback"})%>
  </div>

</asp:Content>
